package top.glkj.hms.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import top.glkj.hms.entity.Employee;
import top.glkj.hms.entity.User;

/**
 * @author : xgl
 * @version : 0.0.1
 * @date :2021/1/2 1:07
 */
public interface EmployeeDao extends JpaRepository<Employee, Long>, JpaSpecificationExecutor<Employee> {
    /**
     * 根据用户查找雇员
     * @param user 雇员
     * @return 雇员
     */
    public Employee findEmployeeByUser(User user);
}
